﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo3
{
    class Users
    {
            private string username;//内心
            public string UsersName//外表
            {
                get
                {
                    if (username == "咕咚")
                    {
                        return "敏感词汇！";
                    }
                    else
                    {
                        return this.username;
                    }
                }
                set
                {
                    this.username = value;
                }
            }
            public string UsersHobby { get; set; }
            public char UsersSex { get; set; }
            public double UsersMoney { get; set; }
            public string UsersLogin { get; set; }
            public string UsersPassword { get; set; }
            public string Usersadd { get; set; } 
        public void Library()
            {
                Console.WriteLine("用户账号：{0}\t用户密码：{1}\t用户名：{2}\t用户性别：{3}\t用户爱好：{4}\t用户地址：{5}\t用户余额：{6}",this.UsersLogin,this.UsersPassword, this.UsersName, this.UsersSex, this.UsersHobby,this.Usersadd,this.UsersMoney);
            }
        }
    }
